package org.ilovecode.display {
	
	import flash.display.MovieClip;
	import flash.events.Event;
	import flash.events.MouseEvent;
	import flash.events.TimerEvent;
	import flash.utils.Timer;
	import gs.TweenLite;
	import gs.easing.*;
	import org.ilovecode.events.MenuEvent;
	
	/**
	 * ...
	 * @author Vjekoslav Ratkajec
	 */
	public class BusinessExtendedMenu extends DropdownMenu {
		
		//{ region Stage elements
		
		public var contentMask:MovieClip;
		public var shopButton:MenuItem;
		public var cateringButton:MenuItem;
		public var kindergartenButton:MenuItem;
		
		//} endregion
		
		public function BusinessExtendedMenu() {
			this.addEventListener(Event.ADDED_TO_STAGE, addedToStage);
		}
		
		private function addedToStage(event:Event):void {
			this.removeEventListener(Event.ADDED_TO_STAGE, addedToStage);
			initListeners();
			super.init(contentMask);
		}
		
		private function initListeners():void {
			addListenerToMenuItem(shopButton);
			addListenerToMenuItem(cateringButton);
			addListenerToMenuItem(kindergartenButton);
		}
		
	}

}